<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<s:url namespace="/lesson" action="viewLesson" id="viewLesson">
	<s:param name="id" value="lesson.id"></s:param>
</s:url>
<dt>
	<i class="icon-heart"></i>
	<s:date name="logTime" format="yyyy-MM-dd HH:mm:ss" />
	： <span> <s:if test="#log.lesson == null">历史订课</s:if> <s:elseif test="#log.signCourse == null">试听订课</s:elseif> <s:else>订课</s:else></span>
	<a href="${viewLesson}">${log.lesson.name}</a>
	(${log.creator})
</dt>
<dd>
	<div>
		时间：
		<s:date name="#log.beginTime" format="yyyy-MM-dd" />
		${log.timespan}
	</div>
	<s:if test="#log.mark.toString() == 'Good'">
		<i class="icon-thumbs-up" title="Good"></i>
	</s:if>
	<s:elseif test="#log.mark.toString()== 'Bad'">
		<i class="icon-thumbs-down" title="Bad"></i>
	</s:elseif>
	<s:if test="#log.leaveEarly">
		<i class="icon-download" title="早退"></i>早退
		</s:if>
	<s:if test="#log.beLate">
		<i class="icon-time" title="迟到"></i>迟到
		</s:if>
	<s:if test="!#log.valid">
		<span class="label">不统计课时</span>
	</s:if>
	<s:if test="#log.title != null">
		<div>
			备注：
			<a href="#">${log.title}</a>
		</div>
	</s:if>
</dd>